import request from "@/utils/request";

/**
 * 获取首页默认地址
 */

export function cityGuess(params: any) {
  return request({
    url: "/v1/cities",
    method: "get",
    params
  })
}



/**
 * 获取当前所在城市
 */

export function currentcity(number: any) {
  return request({
    url: '/v1/cities/' + number,
    method: "get",
  })
}

/**城市具体地址
 */

export function searchplace(params: any) {
  return request({
    url: '/v1/pois/',
    method: "get",
    params
  })
}

/**
 * 获取msite页面地址信息
 */

 export function msiteAddress(geohash: any) {
  return request({
    url: '/v2/pois/'+geohash,
    method: "get"
  })
}


/**
 * 获取msite页面食品分类列表
 */

 export function msiteFoodTypes(params: any) {
  return request({
    url: '/v2/index_entry',
    method: "get",
    params
  })
}

/**
 * 获取msite商铺列表
 */
 export function getShopList(params: any) {
  return request({
    url: '/shopping/restaurants',
    method: "get",
    params
  })
}
